package com.qingcloud.fexecutor.model;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

@Data
@ToString
@Accessors(chain = true)
@Table(name = "web_pub_page_variable")
public class WebPubPageVariable implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 自增主键
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @ApiModelProperty(value = "主键", hidden = true)
    private Integer id;

    @ApiModelProperty("应用ID")
    private Integer appId;

    @ApiModelProperty("页面ID")
    private Integer pageId;

    @ApiModelProperty("类别 1-dom变量 2-全局变量")
    private Integer type;

    @ApiModelProperty("变量")
    private String vars;

}
